import {Meta} from '@storybook/blocks';

<Meta title="Docs/Add documentation" />

# Document your library

Template has [Storybook](https://storybook.js.org/) configuration to handle documentation and examples.

```bash
yarn start:docs # starts Storybook in development mode, http://localhost:6006/
yarn build:docs # builds Storybook pages to `storybook-dist` directory
```

## Write

To document component or module simply create `story` file as `.js` or `.stories.mdx` extension, more info [here](https://storybook.js.org/docs/react/writing-stories/introduction).

## Deploy

After package is published you can build and host documentation at Github Pages or Netlify, using [this manual](https://storybook.js.org/tutorials/intro-to-storybook/react/en/deploy/).
